package cn.iocoder.yudao.module.eval.controller.admin.candidate.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 参评人员信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class EvalCandidateInfoPageReqVO extends PageParam {

    @Schema(description = "计划ID", example = "1")
    private Long planId;

    @Schema(description = "姓名", example = "张三")
    private String candidateName;

    @Schema(description = "身份证号", example = "440123199001010001")
    private String idNumber;

    @Schema(description = "姓名（Mapper字段）", example = "张三")
    private String name;

    @Schema(description = "手机号", example = "13800138000")
    private String mobile;

    @Schema(description = "申报等级", example = "四级")
    private String appliedLevel;

    @Schema(description = "申报职业", example = "数控车工")
    private String appliedProfession;

    @Schema(description = "数据来源", example = "1")
    private Integer dataSource;

    @Schema(description = "报名状态", example = "1")
    private Integer registrationStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime[] createTime;

    // 兼容性方法
    public String getName() {
        return candidateName != null ? candidateName : name;
    }

} 